from django import template
from django.conf import settings

register = template.Library()

@register.filter
def panel_page(value):
  if value == 'A':
    return settings.ADMIN_PANEL
  if value == 'T':
    return settings.TEACHER_PANEL

@register.tag
def login_page(value):
  if value == 'A':
    return settings.ADMIN_LOGIN_PAGE
  if value == 'T':
    return settings.TEACHER_LOGIN_PAGE
  if value == 'S':
    return settings.STUDENT_LOGIN_PAGE

